package cn.seaboot.admin.reverse.bean;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * POJO
 * 代码模版 [t_db_tpl]
 * <p>
 *
 * @author Mr.css on 2018-6-20
 */
@Schema(description = "代码模版 [t_db_tpl] 实体类")
public class CodeTemplate implements Serializable {

    private static final long serialVersionUID = -5061259429692533144L;
    /**
     * ID
     */
    @NotNull()
    @Schema(description = "ID")
    private String id;
    /**
     * 模版名称
     */
    @Size(max = 32)
    @Schema(description = "模版名称")
    private String tplName;
    /**
     * 代码模版
     */
    @Size(max = 294967295)
    @Schema(description = "代码模版")
    private String tplContent;
    /**
     * 模版描述
     */
    @Size(max = 64)
    @Schema(description = "模版描述")
    private String description;
    /**
     * 生成的文件名模版
     */
    @Size(max = 32)
    @Schema(description = "生成的文件名模版")
    private String fileNameTpl;
    /**
     * 生成的文件名模版
     */
    @Size(max = 16)
    @Schema(description = "模版类型")
    private String tplType;

    /**
     * 是否禁用
     */
    @NotNull
    @Schema(description = "是否禁用")
    private Boolean disabled;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTplName() {
        return tplName;
    }

    public void setTplName(String tplName) {
        this.tplName = tplName;
    }

    public String getTplContent() {
        return tplContent;
    }

    public void setTplContent(String tplContent) {
        this.tplContent = tplContent;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getFileNameTpl() {
        return fileNameTpl;
    }

    public void setFileNameTpl(String fileNameTpl) {
        this.fileNameTpl = fileNameTpl;
    }

    public String getTplType() {
        return tplType;
    }

    public void setTplType(String tplType) {
        this.tplType = tplType;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    @Override
    public String toString() {
        return "CodeTemplate{" +
                "id='" + id + '\'' +
                ", tplName='" + tplName + '\'' +
                ", tplContent='" + tplContent + '\'' +
                ", description='" + description + '\'' +
                ", fileNameTpl='" + fileNameTpl + '\'' +
                ", tplType='" + tplType + '\'' +
                ", disabled=" + disabled +
                '}';
    }
}
